<div class="tableform" style="background:#FFF;">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" >
        <tr>
            <th><em class="c-red">*</em><{t}>规则名称：<{/t}></th>
            <td><{input id="title" type="text" name="title" value=$rule.title size="25" vtype="required" }></td>
        </tr>
        <tr>
            <th><em class="c-red">*</em><{t}>规则类型：<{/t}></th>
            <td>
                <{assign var="rule_type_arr" value=array('shopLevel'=>'店铺级','goodLevel'=>'商品级')}>
                <select id="rule_type"  name='rule_type' >
                     <option value="">请选择...</option>
					<{foreach from=$rule_type_arr item=item key=key}>
                        <option value="<{$key}>" <{if $key==$rule.rule_type}>selected='selected'<{/if}> ><{$item}></option>
					<{/foreach}>
                </select>&nbsp;此项必选&nbsp;
                <{help}><{t}>店铺级：以前端店铺为单位实施此赠品规则。商品级：以订单中的商品为单位实施此赠品规则。<{/t}><{/help}>
            </td>
        </tr>
        <tr>
            <th><em class="c-red">*</em><{t}>是否排他：<{/t}></th>
            <td>
                <label><input type="radio" value="1" name="is_exclude" <{if $rule.is_exclude=='1'}>checked<{/if}> /> 是</label>&nbsp;&nbsp;
                <label><input type="radio" value="2" name="is_exclude" <{if $rule.is_exclude=='2'}>checked<{/if}> /> 否</label>&nbsp;&nbsp;
                <{help}><{t}>
                                        说明：1.规则是以优先级由高到低、创建时间由新到旧的顺序来逐一匹配。2.会先匹配店铺级规则，再匹配商品级规则。3.选择“是”就是排他，匹配此规则的话，就不再匹配其他的规则。选择“否”就是不排他，匹配此规则的话，就看是否有匹配的其他规则，如有并且此规则本身也是不排他的做叠加处理。
                <{/t}><{/help}>
            </td>
        </tr>
        <tr>
            <th><em class="c-red">*</em><{t}>起止时间：<{/t}></th>
            <td>
                <{input id="start_time" size="30" type='date' name='start_time' value=$rule.start_time vtype="required" }>
                <{input type='select' name='start_time_hour' value=$rule.start_time_hour vtype="required" options=$conf_hours }>
                :00:00
                到
                <{input id="end_time" size="30" type='date' name='end_time' value=$rule.end_time vtype="required" }>
                <{input type='select' name='end_time_hour' value=$rule.end_time_hour vtype="required" options=$conf_hours }>
                :00:00
            </td>
        </tr>
        <tr>
            <th><em class="c-red">*</em><{t}>时间类型：<{/t}></th>
            <td>
                <{assign var="opt" value=array('sendtime'=>'订单处理时间','createtime'=>'订单创建时间','pay_time'=>'订单付款时间')}>
                <{input type="select" id="time_type" name="time_type" options=$opt value=$rule.time_type}>
            </td>
        </tr>
        <tr>
            <th><em class="c-red">*</em><{t}>状　　态：<{/t}></th>
            <td>
                <label><input type="radio" value="1" name="status" /> 开启</label>&nbsp;&nbsp;
                <label><input type="radio" value="0" name="status" /> 关闭</label>
            </td>
        </tr>
    </table>
</div>